﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace FatoryTool
{
    public class PipeEndPoint
    {
        public PipeEndPoint(System.Windows.Point EndPoint)
        {
            this.EndPoint = EndPoint;
        }
        /// <summary>
        /// 管道关节在界面上的点
        /// </summary>
        public System.Windows.Point EndPoint { get; set; }
        /// <summary>
        /// 管道关节角度
        /// </summary>
        public double Angle { get; set; }
        /// <summary>
        /// 两根管道边线的交点1
        /// </summary>
        public System.Windows.Point Intersection1 { get; set; }
        /// <summary>
        /// 两根管道边线的交点2
        /// </summary>
        public System.Windows.Point Intersection2 { get; set; }
        /// <summary>
        /// 管道关节的弧度是否顺时针
        /// </summary>
        public CalcTools.VectorClockDirection ClockDirection;
        /// <summary>
        /// 管道弯头的同心圆圆心
        /// </summary>
        public System.Windows.Point CircleCenterPoint { get; set; }
        /// <summary>
        /// 同心圆直径1
        /// </summary>
        public double Diameter1 = 0;
        /// <summary>
        /// 同心圆直径2
        /// </summary>
        public double Diameter2 = 0;
        /// <summary>
        /// 辅助计算点
        /// </summary>
        public System.Drawing.PointF[] CalcPoints = new System.Drawing.PointF[4];
        /// <summary>
        /// 是否平滑连接：计算管道的同心圆和四个切点
        /// </summary>
        public bool SmoothConnect = true;
        /// <summary>
        /// 是否可用
        /// </summary>
        public bool Aviable = true;
        /// <summary>
        /// 是否U型弯管
        /// </summary>
        public bool IsUcorner = false;

        public System.Windows.Point P11 { get; set; }
        public System.Windows.Point P12 { get; set; }
        public System.Windows.Point P21 { get; set; }
        public System.Windows.Point P22 { get; set; }
    }
}
